import { IsEnum, IsNotEmpty, IsOptional, IsString } from 'class-validator';
import { ArticleState } from './article.dto';

export class PaginationDto {
  @IsString()
  @IsNotEmpty()
  pageNum: string;

  @IsString()
  @IsNotEmpty()
  pageSize: string;

  @IsEnum(ArticleState)
  @IsOptional()
  state: string;

  @IsString()
  @IsOptional()
  category_id: string;
}
